package com.max.socket.dto;

/**
 * 定义的消息传输协议
 */
public class MsgDTO {

    //消息类型
    private MsgType msgType;

    //消息内容
    private String content;

    //消息发送者
    private String sender;

    public MsgDTO(){}
    public MsgDTO(MsgType msgType, String content, String sender) {
        this.msgType = msgType;
        this.content = content;
        this.sender = sender;
    }


    public MsgType getMsgType() {
        return msgType;
    }

    public void setMsgType(MsgType msgType) {
        this.msgType = msgType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }
}
